<?php
namespace DRY\Plugin;

/**
 * DonReY Framework 2012 :: TEST Plugin - Used for experimenting with the new Plugins feature
 * Note that plugins do not have a base class.
 * (However, a plugin is usually designed for specific modules, and they don't work anywhere else)
 *
 * @author Wavetrex <wavetrex@gmail.com>
 * @link http://www.donrey.net/Documentation/Structure/Plugins/test.html
 * @license [GPL v3] http://www.gnu.org/licenses/gpl-3.0.html
 * @version 1.0.dev
 * @package DonReY
 * @subpackage Plugins
 */
class Zombie
{
	public static $_methods = array('test_Method', 'fromConfig');

	public $CFG;

	public function __construct(\DRY\Module\base $module, $args)
	{
		$this-> CFG = $args[0];
	}

	/**
	 * Plugin testing method
	 * @param int $a
	 * @param string $b
	 */
	public function test_Method($a, $b)
	{
		dd($a, $b);
	}

	public function fromConfig()
	{
		dd((string)$this-> CFG-> moar-> yo['x'], "YO");
	}
}